import './App.scss'
import {
  BrowserRouter as Router,
  Route,
  Switch,
  Redirect,
} from 'react-router-dom'
import Login from './pages/Login'
import Layout from './pages/Layout'
function App() {
  return (
    <Router>
      <div>
        {/* <ul>
          <li>
            <Link to="/login">登录</Link>
          </li>
          <li>
            <Link to="/home">首页</Link>
          </li>
        </ul> */}
        <Switch>
          <Redirect exact from="/" to="/home"></Redirect>
          <Route path="/login">
            <Login></Login>
          </Route>
          <Route path="/home">
            <Layout></Layout>
          </Route>
        </Switch>
      </div>
    </Router>
  )
}

export default App
